package cn.wolfcode.luowowo.article.service.impl;

import cn.wolfcode.luowowo.article.domain.Flight;
import cn.wolfcode.luowowo.article.mapper.FlightMapper;
import cn.wolfcode.luowowo.article.service.IFlightService;
import com.alibaba.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

@Service
public class FlightServiceImpl implements IFlightService {

    @Autowired
    private FlightMapper flightMapper;

    @Override
    public List<Flight> selectArr(String orgCity, String dstCity) {


        return flightMapper.selectArr(orgCity, dstCity);
    }

    @Override
    public void savaPice(int i, int rannum) {


        flightMapper.updatePice(i, rannum);
    }

    @Override
    public Flight getFilghtById(Long id) {
        return flightMapper.selectByPrimaryKey(id);
    }
}
